import requests

url = "http://isure.stream.qqmusic.qq.com/M500003XALLg3F7kjQ.mp3?guid=6250194&vkey=59016A7C9A4D0CF44486DA7D73B71EFE53AA837ADD0B3BE9B9A239E1E4767D71CA0288EE61718C6AAA12FFEC4F0E33498C88606B50022012__v21ebdc5ea&uin=7054918&fromtag=120042"  # 替换为真实的歌曲链接
filename = "downloaded_song.mp3"

response = requests.get(url, stream=True)

with open(filename, "wb") as f:
    for chunk in response.iter_content(chunk_size=1024):
        if chunk:
            f.write(chunk)

print("下载完成！")